﻿using System.Collections.Generic;

namespace Godot.core
{
    public class ObjectDB
    {
        public static uint add_instance(Object p_object)
        {
            //GLOBAL_LOCK_FUNCTION;
	        if(p_object.get_instance_ID() !=0) return 0 ;
	        __instances[++__instance_counter] = p_object;
	        return __instance_counter;
        }

        private static uint __instance_counter;
        private static Dictionary<uint, Object> __instances = new Dictionary<uint, Object>();
    }
}
